﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:WPFSceneryEditor.CustomControls" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" x:Class="WPFSceneryEditor.CustomControls.ValueBar"
             mc:Ignorable="d" d:DesignWidth="260" Height="58">
    <Grid Name="grid" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="26" />
            <RowDefinition Height="32" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="160*" />
            <ColumnDefinition Width="70" />
        </Grid.ColumnDefinitions>

        <xctk:DoubleUpDown Name="numericUpDown"
                           FormatString="0" Margin="5,5,5,5"
                           VerticalAlignment="Stretch"
                           HorizontalAlignment="Stretch"
                           ValueChanged="numericUpDown_ValueChanged_1"
                           Grid.Column="1"
                           Grid.Row="1">
            <xctk:DoubleUpDown.Effect>
                <DropShadowEffect BlurRadius="15" ShadowDepth="0"  Color="LightGray"></DropShadowEffect>
            </xctk:DoubleUpDown.Effect>
        </xctk:DoubleUpDown>

        <Label HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="TextTest"
               Grid.RowSpan="1"
               Grid.ColumnSpan="2" />

        <Border CornerRadius="5"
                BorderBrush="Black"
                Margin="5,5,5,5"
                BorderThickness="1"
                HorizontalAlignment="Stretch"
                VerticalAlignment="Stretch"
                Grid.Row="1"
                Grid.RowSpan="1"
                Background="Gray">

            <Border.Effect>
                <DropShadowEffect BlurRadius="15" ShadowDepth="0"  Color="LightGray"></DropShadowEffect>
            </Border.Effect>
            <StackPanel Name="stackPanel"
                        Margin="-1,-1,-1,-1"
                        VerticalAlignment="Stretch"
                        Background="Transparent"
                        HorizontalAlignment="Stretch"
                        MouseMove="OnMouseMove"
                        SizeChanged="OnSizeChange"
                        MouseLeave="OnMouseLeave"
                        MouseLeftButtonDown="OnMouseClick"
                        MouseUp="OnMouseClick">

                <Rectangle x:Name="rectangle"
                           VerticalAlignment="Top"
                           HorizontalAlignment="Left"
                           Width="50"
                           Height="22"
                           Fill="#FF008BFF"
                           Stroke="Black" StrokeThickness="1"
                           RadiusX="5"
                           RadiusY="5">
                </Rectangle>
                <Line Name="zeroLine"
                      X1="50" Y1="-21"
                      X2="50" Y2="1"
                      Stroke="Black"
                      StrokeThickness="7">
                </Line>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>